﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CjcPhotoPrint
{
	public class Identity : Transformation
	{
		public Identity( string name ) : base( name )
		{
		}

		public override TransformationContext ParentOverride( TransformationContext parent )
		{
			return ( parent != null && parent.Transformation is Identity && parent == parent.Source.Transformations.LastOrDefault() )
				? parent.Parent
				: parent;
		}
	}
}